import classNames from 'classnames'
import React from 'react'

export default function Icon({ type, className, ...rest }) {
  return (
    <svg className={classNames(['icon', className])} {...rest}>
      <use xlinkHref={`#${type}`}></use>
    </svg>
  )
}
